package com.itheima.dao.impl;

import com.itheima.dao.BookDao;

public class BookDaoImpl implements BookDao {

    private String databaseName;
    private int connectionNum;

    public BookDaoImpl(int connectionNum, String databaseName) {
        this.connectionNum = connectionNum;
        this.databaseName = databaseName;
    }

    //    public void setDatabaseName(String databaseName) {
//        this.databaseName = databaseName;
//    }
//
//    public void setConnectionNum(int connectionNum) {
//        this.connectionNum = connectionNum;
//    }

    @Override
    public void save() {
        System.out.println("book dao save ..." + databaseName + "," +connectionNum);
    }

//    public void init() {
//        System.out.println("init...");
//    }
//
//    public void destory(){
//        System.out.println("destory...");
//    }
//
//    private BookDaoImpl(){
//        System.out.println("book dao constructor is running ...");
//    }
}
